home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak Vol C-14
/
Vol C-14.iso
/
games
/
prototyp.swf
/
scripts
/
DefineSprite_15
/
frame_2
/
PlaceObject2_14_1
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2012-04-23
|
1KB
|
42 lines
onClipEvent(enterFrame){
currentbytes = int(_root.getBytesLoaded() / 1000);
totalbytes = int(_root.getBytesTotal() / 1000);
percentbytes = int(currentbytes / totalbytes * 100);
if(_parent.txtstyle == "Kilobytes")
{
textbox2.text = "Loading " + currentbytes + " Kb of " + totalbytes + " Kb";
textbox2.setTextFormat(_parent.myformat);
bar._xscale = percentbytes;
if(percentbytes >= 100)
{
textbox2.text = "Loading Complete";
textbox2.setTextFormat(_parent.myformat);
_root.play();
}
}
if(_parent.txtstyle == "Percent")
{
textbox2.text = "Loading " + percentbytes + "% ";
textbox2.setTextFormat(_parent.myformat);
bar._xscale = percentbytes;
if(percentbytes >= 100)
{
textbox2.text = "Loading Complete";
textbox2.setTextFormat(_parent.myformat);
_root.play();
}
}
if(_parent.txtstyle == "Both")
{
textbox2.text = "Loading " + percentbytes + "% of " + totalbytes + " Kb";
textbox2.setTextFormat(_parent.myformat);
bar._xscale = percentbytes;
if(percentbytes >= 100)
{
textbox2.text = "Loading Complete";
textbox2.setTextFormat(_parent.myformat);
_root.play();
}
}
}